package com.qianxx.component.activity.text.grid_pass_word_view;

import android.os.Bundle;
import android.widget.Button;
import android.widget.Toast;

import com.qianxx.component.R;
import com.qianxx.component.activity.base.BaseActivity;
import com.qianxx.viewlibrary.text.gridpasswordview.GridPasswordView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class GridPasswrodViewActivity extends BaseActivity {
    @BindView(R.id.gpv_normal)
    GridPasswordView gpvNormal;
    @BindView(R.id.submit)
    Button submit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_grid_passwrod_view);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.submit)
    public void onClick() {
        Toast.makeText(getApplicationContext(),
                gpvNormal.getPassWord(), Toast.LENGTH_SHORT).show();
    }

    @Override
    public String setTitle() {
        return "GridPasswordView";
    }
}
